package com.yugao.fintech.antelope.pay.payment.utils;

import java.util.HashMap;
import java.util.Map;

public class ExcelUtils {
    private static Map<String, Object> spirtString(String result) {
        Map<String, Object> map = new HashMap<>();
        String headerInfo = result.substring(0, result.indexOf("`"));
        String tradeMsg = result.substring(result.indexOf("`"));
        String tradeInfo = tradeMsg.substring(0, tradeMsg.indexOf("总")).replace("`", "");
        String totalMsg = tradeMsg.substring(tradeMsg.indexOf("总"));
        String totalHeader = totalMsg.substring(0, totalMsg.indexOf("`"));
        String totalInfo = totalMsg.substring(totalMsg.indexOf("`")).replace("`", "");
        map.put("headerInfo", headerInfo);
        map.put("tradeInfo", tradeInfo);
        map.put("totalHeader", totalHeader);
        map.put("totalInfo", totalInfo);
        return map;
    }
}
